/*
 * constraint.cpp
 *
 *  Created on: 24/11/2011
 *      Author: Aeradon
 */

#include "../include/constraint.hpp"

Constraint::Constraint(unsigned int id, float x1, float y1, float x2, float y2):
	vecIndex(0),
	id(id),
	p1(x1,y1),
	p2(x2,y2),
	v1(nullptr),
	v2(nullptr)
{

}

Constraint::~Constraint()
{

}

void Constraint::addSymEdge(SymEdge* e)
{
	l_symEdge.push_back(e);
}

void Constraint::removeSymEdge(SymEdge* e)
{
	l_symEdge.remove(e);
}

